package hcn.protocol.ods;


import ctd.util.xml.jaxb.DateAdapter;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@XmlRootElement(name="recordRequest")
public class RecordRequestBean implements Serializable{

    private static final long serialVersionUID = 5669968960283301681L;
    private String orgId;
    private List<IdentityBean> identitys;
    private Date date;

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    @XmlElementWrapper(name = "identitys")
    @XmlElement(name = "identity")
    public List<IdentityBean> getIdentitys() {
        return identitys;
    }

    public void setIdentitys(List<IdentityBean> identitys) {
        this.identitys = identitys;
    }

    @XmlElement
    @XmlJavaTypeAdapter(DateAdapter.class)
    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
}
